<?php
namespace app\common\validate;

use think\Validate;

class OkrValidate extends Validate
{
    protected $rule =   [
        'invite_num|邀约数量' => 'require|number',
        'face_num|到面数量'   => 'require|number',
        'pass_num|通过数量'   => 'require|number',
        'stage|阶段'          => 'require|number',
        'start_time|开始时间' => 'require|date',
        'end_time|结束时间'   => 'require|date',
    ];
    
    protected $scene = [
        /** admin */
        'add'    => ['invite_num', 'face_num', 'pass_num', 'stage', 'start_time', 'end_time'],
    ];
}